package beautiful.butterfly.drds.datasource.connection_contexts.api;


import java.sql.SQLException;


public interface ISql {
    //
    public void close() throws SQLException;

    public boolean isClosed() throws SQLException;

    //
    public void addBatch(String sql) throws SQLException;

    public int[] executeBatch() throws SQLException;

    public void clearBatch() throws SQLException;

    //
    public int executeUpdate(String sql) throws SQLException;

    public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException;

    public int getUpdateCount() throws SQLException;

    public IRowDataMapList getGeneratedKeys() throws SQLException;

    //
    public IRowDataMapList executeQuery(String sql) throws SQLException;

    public void cancel() throws SQLException;

    //
    public void setQueryTimeout(int queryTimeout) throws SQLException;

    public int getQueryTimeout() throws SQLException;

    public void setFetchDirection(int fetchDirection) throws SQLException;

    public int getFetchDirection() throws SQLException;

    //
    public void setFetchSize(int fetchSize) throws SQLException;

    public int getFetchSize() throws SQLException;

    //
    public void setMaxRows(int maxRows) throws SQLException;

    public int getMaxRows() throws SQLException;

    //
    public void setMaxFieldSize(int maxFieldSize) throws SQLException;

    public int getMaxFieldSize() throws SQLException;


}
